<html>
<head>
<script>
chrome.history.onVisited.addListener(
function(result) {
    var faddr = localStorage["filteraddr"];
    if (!faddr) {
       faddr = "mail.google.com";
    }

    if( result.url.indexOf(faddr)>-1 )
	chrome.history.deleteUrl( { 'url': result.url } );
}); 
</script>
</head>
</html>
